package com.example.familytreebe.dto;

import com.example.familytreebe.entity.Person;
import java.time.LocalDate;

public class SpouseDTO {
    private Person spouse;
    private LocalDate marriageDate;

    // 构造器
    public SpouseDTO(Person spouse, LocalDate marriageDate) {
        this.spouse = spouse;
        this.marriageDate = marriageDate;
    }

    // Getter和Setter
    public Person getSpouse() {
        return spouse;
    }

    public void setSpouse(Person spouse) {
        this.spouse = spouse;
    }

    public LocalDate getMarriageDate() {
        return marriageDate;
    }

    public void setMarriageDate(LocalDate marriageDate) {
        this.marriageDate = marriageDate;
    }
}